package com.transaction.service.impl;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.transaction.domain.SysStockInfo;
import com.transaction.domain.SysStockShareholder;
import com.transaction.mapper.SysStockInfoMapper;
import com.transaction.service.SysStockInfoService;
import com.transaction.service.SysStockShareholderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 占全
 * @description 针对表【sys_stock_info(股票信息表)】的数据库操作Service实现
 * @createDate 2024-03-26 14:00:44
 */
@Service
public class SysStockInfoServiceImpl extends ServiceImpl<SysStockInfoMapper, SysStockInfo>
        implements SysStockInfoService {

    @Autowired
    SysStockInfoMapper sysStockInfoMapper;
    @Autowired
    SysStockShareholderService sysStockShareholderService;


    @Override
    public PageInfo<SysStockInfo> getformlist(SysStockInfo sysStockInfo) {
        //Page<SysStockInfo> page = new Page<>(sysStockInfo.getPageNum(), sysStockInfo.getPageSize());
        //mybatisplus 分页
        PageHelper.startPage(sysStockInfo.getPageNum(), sysStockInfo.getPageSize());
        List<SysStockInfo> list = sysStockInfoMapper.getformlist(sysStockInfo);
        return new PageInfo<>(list);
    }
}




